package com.decades.application.dto;

import java.util.Date;
import java.util.List;

import android.os.Parcel;
import android.os.Parcelable;

public class DummyDto implements Parcelable{
	/**
	 * 
	 */
	private List<ReferenceDto> refList;
	
	public DummyDto() {
	}
	
	public DummyDto(Parcel in) { 
		readFromParcel(in); 
	}
	
	



	public List<ReferenceDto> getRefList() {
		return refList;
	}



	public void setRefList(List<ReferenceDto> refList) {
		this.refList = refList;
	}



	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		
		dest.writeList(refList);
		
	}
	
	private void readFromParcel(Parcel in) {
		
		in.readList(refList,List.class.getClassLoader());
	}
	
	@SuppressWarnings("rawtypes")
	public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {
        public DummyDto createFromParcel(Parcel parcel) {
           
            return new DummyDto(parcel);
        }

        public DummyDto[] newArray(int size) {
            return new DummyDto[size];
        }
    };
}
